package search

// Operator use mongo
// https://www.mongodb.com/docs/manual/reference/operator/query/
const (
	OPEqual         = "$eq"
	OPNotEqual      = "$ne"
	OPGT            = "$gt"
	OPGTE           = "$gte"
	OPLT            = "$lt"
	OPLTE           = "$lte"
	OPIn            = "$in"
	OPOr            = "$or"
	OPBetween       = "$between"
	OPLike          = "$like"
	OPSort          = "$sort"
	OPContains      = "$contains"
	OPLeftJoin      = "$left"
	OPJoin          = "$join"
	OPGroup         = "$group"
	OPGroupOr       = "$groupor"
	OPSet           = "$set"
	OPUnSet         = "$unset"
	OPSetOnInsert   = "$setOnInsert"
	OPInc           = "$inc"
	OPIS            = "$is"
	OPPattern       = "$pattern"
	OPArrayContains = "$arrayContains" // 包含数组的所有元素
	OPExpr          = "$expr"
	OPPush          = "$push"
)

// Item Order
const (
	SortASC           = "ASC"
	SortDESC          = "DESC"
	SortDESCNullsLast = "DESC NULLS LAST"
)
